﻿<UserControl x:Class="DIST.LR.ZHJG.Controls.Chart.ucDoughnut"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" 
    mc:Ignorable="d"
    d:DesignHeight="120" d:DesignWidth="120">
    
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <dxc:ChartControl Name="devChart" Background="#FFFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" EnableAnimation="False"  BorderThickness="0" MinHeight="120" MinWidth="120"  Width="120" Height="120">
            <dxc:ChartControl.Diagram>
                <dxc:SimpleDiagram2D x:Name="Chart" Background="Transparent" >
                    <dxc:SimpleDiagram2D.Series>
                        <dxc:PieSeries2D  HoleRadiusPercent="80" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <dxc:PieSeries2D.PointAnimation>
                                <dxc:Pie2DFlyInAnimation Duration="0:0:1.5" PointOrder="Random" />
                            </dxc:PieSeries2D.PointAnimation>
                            <dxc:PieSeries2D.PointOptions>
                                <dxc:PointOptions PointView="ArgumentAndValues">
                                    <dxc:PointOptions.ValueNumericOptions>
                                        <dxc:NumericOptions Format="Percent" Precision="0" />
                                    </dxc:PointOptions.ValueNumericOptions>
                                </dxc:PointOptions>
                            </dxc:PieSeries2D.PointOptions>
                            <dxc:PieSeries2D.Label>
                                <dxc:SeriesLabel Visible="False" RenderMode="RectangleConnectedToCenter" />
                            </dxc:PieSeries2D.Label>
                            <dxc:PieSeries2D.Points>
                                <dxc:SeriesPoint Value="80" />
                                <dxc:SeriesPoint Value="50" />
                            </dxc:PieSeries2D.Points>
                        </dxc:PieSeries2D>
                    </dxc:SimpleDiagram2D.Series>
                </dxc:SimpleDiagram2D>
            </dxc:ChartControl.Diagram>
        </dxc:ChartControl>
    </Grid>
</UserControl>
